home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dr.bub / 96000.lha / 96000 / appb / b110a.asm < prev    next >
Assembly Source File  |  1992-04-28  |  3KB  |  47 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7. ;or 
  8. ;       d5 = ar    d4 = br    d6 = bi    d7 = ai 
  9. ;       X Memory Organization            Y Memory Organization 
  10. ;                    .      .      
  11. ;                 dr2    di2     
  12. ;    R5?    dr1     DADDR               R2 ?    di1     DADDR 
  13. ;                    .      .      
  14. ;                    .      .      
  15. ;                 cr2                                      ci2     
  16. ;    R1 ?    cr1     CADDR               R6 ?    ci1     CADDR 
  17. ;                    .      .      
  18. ;                    .      .      
  19. ;                 br2                                      bi2     
  20. ;    R4 ?    br1     BADDR               R4 ?    bi1     BADDR 
  21. ;                    .      .      
  22. ;                    .      .      
  23. ;                 ar2                                      ai2     
  24. ;    R0 ?    ar1     AADDR               R0 ?    ai1     AADDR 
  25. ;                                                                                              Program    ICycles
  26. ;                                                           Words 
  27.     move  #aaddr,r0                                       ;   1      1 
  28.     move  #baddr,r4                                       ;   1      1 
  29.     move  #caddr,r1                                       ;   1      1 
  30.     move  r1,r6                                           ;   1      1 
  31.     move  #daddr,r5                                       ;   1      1 
  32.     move  r5,r2                                           ;   1      1 
  33.     move                          x:(r4),d6.s             ;   1      1 
  34.     move                          x:(r0),d4.s             ;   1      1 
  35.     fmpy.s d4,d6,d2                            y:(r0)+,d5.s ; 1      1 
  36.     fmpy.s d5,d6,d3               x:(r1)+,d0.s y:(r4)+,d7.s ;     1      1 
  37.     fmpy   d5,d7,d2 fadd.s d2,d0  x:(r4),d6.s               ;     1      1 
  38.     do     #N,_end                                          ;     2      3 
  39.     fmpy   d4,d7,d2 fsub.s d2,d0  x:(r0),d4.s  y:(r6)+,d1.s ;     1      1 
  40.     fmpy   d4,d6,d2 fadd.s d2,d1  d0.s,x:(r5)+ y:(r0)+,d5.s ;     1      1 
  41.     fmpy   d5,d6,d3 fadd.s d3,d1  x:(r1)+,d0.s y:(r4)+,d7.s ;     1      1 
  42.     fmpy   d5,d7,d3 fadd.s d2,d0  x:(r4),d6.s  d1.s,y:(r2)+ ;     1      1 
  43. _end                                                        ;---    --- 
  44. ;                                                    Totals:  17   4N+14 
  45. ;                                                            (13   5N+9) 
  46.